import { request } from '@umijs/max';

//获取登录用户的系统信息
export async function getSystemInfo() {
    return request('/cfms/common/mainDetail', {
      method: 'GET',
    });
}

//获取用户头像
export async function getUserAvatar(params,headers) {
    return request('/admin/user/getAvatar/'+params, {
      method: 'GET',
      responseType: 'blob',
      headers: headers || {},
    skipErrorHandler: true,
    });
}

//获取系统logo
export async function getSystemLogo(params,headers) {
    return request('/system/config/getLogo/'+params, {
      method: 'GET',
      responseType: 'blob',
      headers: headers || {},
    skipErrorHandler: true,
    });
}

